package com.dcw.lixb.designmode.observer;

/**
 * @author lixiaobin
 * @date 2020-07-29 15:17:43
 * @desc 描述信息
 */
public class HexObserver extends Observer {

    public HexObserver(Subject subject) {
        mSubject = subject;
        mSubject.attach(this);
    }

    @Override
    public void update() {
        System.out.println("Hex String : "+Integer.toHexString(mSubject.getState()).toUpperCase());
    }
}
